//主体信息
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//分页
export function enterpriseBodyPage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/page`,
    method: "get",
    params
  });
}
//修改
export function enterpriseBodyUpdate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/update`,
    method: "post",
    data
  });
}
//详情
export function enterpriseBodyDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/detail`,
    method: "get",
    params
  });
}
// 删除
export function enterpriseBodyDelete(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/delete`,
    method: "post",
    data
  });
}
//list集合
export function enterpriseBodyList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/list`,
    method: "get",
    params
  });
}
//审核
export function enterpriseBodyChangeApplyStatus(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/changeApplyStatus`,
    method: "get",
    params
  });
}
//默认集团
export function enterpriseBodySetBloc(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/setBloc`,
    method: "post",
    data
  });
}
//审核界面
export function enterpriseBodyCheckPage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/checkPage`,
    method: "get",
    params
  });
}
//获取用户信息
export function enterpriseBodyMembersinfo(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/membersinfo`,
    method: "get",
    params
  });
}
//同步主体信息
export function enterpriseBodySynSAP(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/enterpriseBodySynSAP`,
    method: "post",
    data
  });
}
//导入主体信息
export function enterpriseBodyImportEnterprise(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/importEnterprise`,
    method: "post",
    data
  });
}
//导出主体信息
export function enterpriseBodyExportEnterpriseBody(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/exportEnterpriseBody`,
    method: "post",
    data,
    responseType: "blob"
  });
}
